﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InternalWindows.aspx.cs" Theme="Internal" 
    Inherits="Landscape.WebApp.Internal.InternalWindows" %>

<%@ Register Src="../Controls/SearchAddConstituents.ascx" TagName="SearchAddConstituents"
    TagPrefix="uc1" %>
<%@ Register src="../Controls/NotifyControl.ascx" tagname="NotifyControl" tagprefix="uc2" %>
<%@ Register src="../Controls/JobDetails.ascx" tagname="JobDetails" tagprefix="uc3" %>
<%@ Register src="../Controls/StatusItemHistory.ascx" tagname="StatusItemHistory" tagprefix="uc4" %>
<%@ Register src="../Controls/EmergencyFeedBack.ascx" tagname="EmergencyFeedBack" tagprefix="uc5" %>
<%@ Register src="../Controls/UserSearch.ascx" tagname="UserSearch" tagprefix="uc6" %>
<%@ Register src="../Controls/ActionResponseHistory.ascx" tagname="ActionResponseHistory" tagprefix="uc7" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:HiddenField ID="hfUserCode" runat="server" />
    <div>
        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" />
        <asp:ScriptManager ID="ScriptManager1" runat="server">
            <Services>
                <asp:ServiceReference Path="~/WCFServices/AdministrativeActions.svc" />
                <asp:ServiceReference Path="~/WCFServices/MaintenanceActions.svc" />
                <asp:ServiceReference Path="~/WCFServices/EmergencyActions.svc" />
            </Services>
        </asp:ScriptManager>
        <uc2:NotifyControl ID="NotifyControl1" runat="server" />
    </div>
    <asp:Panel ID="pnlAddConstituents" runat="server" Visible="false">
        <uc1:SearchAddConstituents ID="SearchAddConstituents1" runat="server" />
    </asp:Panel>
    <asp:Panel ID="pnlAddPlannedJob" runat="server" Visible="false">
        <uc3:JobDetails ID="JobDetails1" runat="server" />        
    </asp:Panel>
     <asp:Panel ID="pnlStatusEntries" runat="server" Visible="false">
         <uc4:StatusItemHistory ID="StatusItemHistory1" runat="server" />           
    </asp:Panel>
    <asp:Panel ID="pnlEmergencyFeedBack" runat="server" Visible="false">
        <uc5:EmergencyFeedBack ID="EmergencyFeedBack1" runat="server" />         
    </asp:Panel>
    <asp:Panel ID="pnlUsers" runat="server" Visible="false">
        <uc6:UserSearch ID="UserSearch1" runat="server" />        
    </asp:Panel>
    <asp:Panel ID="pnlResponseHistory" runat="server" Visible="false">
        <uc7:ActionResponseHistory ID="ActionResponseHistory1" runat="server" />
    </asp:Panel>
    </form>
    <script type="text/javascript">
        function GetCurrentUserCode() {
            if ($get('<%=hfUserCode.ClientID %>').value.trim() == '') {
                return -1;
            }
            else {
                return $get('<%=hfUserCode.ClientID %>').value.trim();
            }
        }
    </script>
</body>
</html>
